autogen: Fetch submodules before running automake
authorColin Walters <walters@verbum.org>
Tue, 14 Aug 2012 16:52:46 +0000 (12:52 -0400)
committerColin Walters <walters@verbum.org>
Tue, 14 Aug 2012 16:52:46 +0000 (12:52 -0400)
Otherwise automake can't find src/libgsystem.

autogen.sh

index 4e9fcaef7a58656a1c8c35bfa56ac81b2952a91e..00281da05787b3de2ffe38f74b0c2498afc1578e 100755 (executable)
@@ -14,8 +14,6 @@ fi
 
 mkdir -p m4
 
-autoreconf --force --install --verbose
-
 # Fetch submodules if needed
 if test ! -f src/libgsystem/README;
 then
@@ -24,6 +22,7 @@ then
 fi
 git submodule update
 
+autoreconf --force --install --verbose
 
 cd $olddir
 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"